package com.jiliason.segmentation.utils;

import com.google.common.collect.Lists;

import java.util.List;

public class ToolsUtil {
    @SafeVarargs
    public static <T> List<T> addLists(List<T>... lists) {
        List<T> res = Lists.newArrayList();
        for (List<T> list : lists) {
            res.addAll(list);
        }
        return res.stream().distinct().toList();
    }
}
